package com.friend.client.service;

import com.friend.domain.po.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author huangzhaoyong
 * @ClassName UserServiceClient
 * @Description TODO
 * @Date 2018/7/25 18:30
 * @Version 1.0
 */
@FeignClient(name = "friend-manage")
public interface UserServiceClient {
    @RequestMapping(value = "/api/user", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    public Object login(@ModelAttribute User user);
}
